<extend name="Public/baseConf"/>
<block name="breadcrumb"> 
	<div class="row wrapper border-bottom white-bg page-heading">
	    <div class="col-lg-6">
	        <h2><present name="data">钩子列表</h2>
	        <ol class="breadcrumb">
	            <li><a href="{:U('index/index')}">首页</a></li>
	            <li class="active">
	                <strong>钩子列表</strong>
	            </li>
	        </ol>
	    </div>
	    <div class="col-lg-6">
            <div class="title-action">
				<span class="block pull-right">
					
					<?php if (IS_ROOT): ?>
						<a class="btn btn-primary" href="{:U('addhook')}">
							<i class="fa fa-pencil align-top"></i>新 增
						</a>
					<?php endif ?>
				</span>
            </div>
        </div>
	</div>
</block>
<block name="body">
	<div class="row">
            <div class="col-lg-12">
            <div class="ibox float-e-margins">
                <div class="ibox-title">
                    <h5>插件列表</h5>
                    <div class="ibox-tools">
                        <a class="collapse-link">
                            <i class="fa fa-chevron-up"></i>
                        </a>
                    </div>
                </div>
                <div class="ibox-content">
                    <div class="table-responsive">
		                  <table class="table table-striped table-bordered table-hover dataTables-example" >
			                  <thead>
			                  <tr>
								<th>ID</th>
								<th>名称</th>
								<th>描述</th>
								<th>类型</th>
								<th>操作</th>
			                  </tr>
			                  </thead>
			                  <tbody>
								    <volist name="list" id="vo">
										<tr>
											<td>{$vo.id}</td>
											<td><a href="{:U('edithook?id='.$vo['id'])}">{$vo.name}</a></td>
											<td>{$vo.description}</td>
											<td>{$vo.type_text}</td>
											<td>
												<a title="编辑" href="{:U('edithook?id='.$vo['id'])}">编辑</a>
												<a class="confirm ajax-get" title="删除" href="{:U('delhook?id='.$vo['id'])}">删除</a>
											</td>
										</tr>
									</volist>
			                  </tbody>
		                  </table>
		            <div class="page pull-right">
				     	{$_page}
			 		</div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</block>
